* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    color: #333;
}

#app {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.layout-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.layout-selection button {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.layout-selection button:hover {
    background-color: #e0e0e0;
}

.layout-selection button.active {
    background-color: #2c3e50;
    color: white;
}

.layout-demo {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.layout-demo h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.layout-demo p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.keyboard {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #e5e5e5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.key {
    width: 40px;
    height: 40px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 14px;
    user-select: none;
    transition: all 0.1s;
}

.key-wide {
    width: auto;
    min-width: 230px;
    padding: 0 10px;
}

.key-active {
    background-color: #4CAF50;
    color: white;
    transform: translateY(2px);
    box-shadow: 0 0px 1px rgba(0, 0, 0, 0.1);
}

.typing-test {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.typing-test p {
    text-align: left;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    font-size: 16px;
    margin-bottom: 15px;
}

.keyboard-map {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.typed-keys, .mapped-keys {
    font-family: monospace;
    font-weight: bold;
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

